package com.ddsso.auth.web.service;

import org.springframework.scheduling.annotation.Async;

/**
 * @author zdd
 * @package com.ddsso.auth.service
 * @Time Created by zdd on 2016/11/3.
 * @description To-do
 */
public interface LoginService {

    /**
     * @description 实现session的同步
     * @param customerId
     * @param currentSessionId
     */
    public void syncSession(String customerId, String currentSessionId);


    /**
     * @descriptin session的失效处理
     * @param customerId
     * @param excludedSessionId
     */
    public void invalidSession(String customerId, String excludedSessionId);

    /**
     * @description 删除记录的值
     * @param customerId
     */
    @Async
    public void delCustomerId(String customerId);
}
